package com.qf.shop.service.Impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.qf.shop.entity.items;
import com.qf.shop.mapper.ItemsMapper;
import com.qf.shop.service.IItemsService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class ItemsServiceImpl implements IItemsService {

    private ItemsMapper itemsMapper;

    public ItemsServiceImpl(ItemsMapper itemsMapper) {
        this.itemsMapper = itemsMapper;
    }

    @Override
    public List<items> getAllItems() {
        List<items> items = itemsMapper.selectList(Wrappers.emptyWrapper());
        return items;
    }
}
